this.BX=this.BX||{};(function(e,n,t){"use strict";function o(){var e=babelHelpers.taggedTemplateLiteral(['<div class="landing-content-loader"></div>']);o=function n(){return e};return e}var a=function(){function e(){babelHelpers.classCallCheck(this,e)}babelHelpers.createClass(e,null,[{key:"getContentArea",value:function n(){return e.cache.remember("contentArea",function(){return document.querySelector(".landing-main")})}},{key:"getContentLoader",value:function a(){return e.cache.remember("contentLoader",function(){var e=n.Tag.render(o());var a=new t.Loader({target:e});a.show();return e})}},{key:"showContentLoader",value:function t(){var o=e.getContentArea();var a=e.getContentLoader();n.Dom.style(o,"position","relative");n.Dom.append(a,o)}},{key:"hideContentLoader",value:function t(){n.Dom.style(e.getContentArea(),"position",null);n.Dom.remove(e.getContentLoader())}},{key:"reloadSlider",value:function t(o,a){return new Promise(function(t){var i=BX.SidePanel.Instance.getSliderByWindow(a||window);if(i){e.showContentLoader();var r=i.getFrame();var d=n.Runtime.clone(r);d.src=n.Uri.addParam(o,{IFRAME:"Y"});i.iframe=d;n.Dom.style(d,{position:"absolute",opacity:0,left:0,transition:"200ms opacity ease"});n.Dom.insertAfter(d,r);n.Event.bind(d,"load",function(e){if(!n.Type.isUndefined(r.contentWindow.BX.Landing.Pub)&&!n.Type.isUndefined(r.contentWindow.BX.Landing.Pub.TopPanel)&&n.Type.isArrayFilled(r.contentWindow.BX.Landing.Pub.TopPanel.history)&&n.Type.isNumber(r.contentWindow.BX.Landing.Pub.TopPanel.historyState)){d.contentWindow.BX.Landing.Pub.TopPanel.history=r.contentWindow.BX.Landing.Pub.TopPanel.history;d.contentWindow.BX.Landing.Pub.TopPanel.historyState=r.contentWindow.BX.Landing.Pub.TopPanel.historyState;d.contentWindow.BX.Landing.Pub.TopPanel.checkNavButtonsActivity()}if(n.Type.isFunction(i.handleFrameLoad)){i.handleFrameLoad(e)}else{console.error("SliderHacks: slider.handleFrameLoad is not a function")}setTimeout(function(){n.Dom.style(d,"opacity",null);setTimeout(function(){n.Dom.remove(r);t()},200)},200)})}else{t()}})}}]);return e}();babelHelpers.defineProperty(a,"cache",new n.Cache.MemoryCache);e.SliderHacks=a})(this.BX.Landing=this.BX.Landing||{},BX,BX);
//# sourceMappingURL=sliderhacks.bundle.map.js